package com.spring.schedule_system.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.spring.schedule_system.entity.Schedule;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

@Mapper
@Repository

public interface ScheduleDao extends BaseMapper<Schedule> {
    @Insert("insert into tb_schedule(course_name,class_name,teacher_name) select course_name,class_name,teacher_name from common_user;")
    int insertSchedule();
}
